package com.bjmashibing.system.OSFileIO.io_demo.ReaderOrWriter;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class WriterDemo {

    public static void main(String[] args) throws IOException {

        demo1();
    }


    public static void demo1() throws IOException {
        File file = new File("src/Java_IO/io_demo/Resources/aaa.txt");
        FileWriter writer = new FileWriter(file);
        writer.write(99);
        writer.write("david");
        writer.flush();
        writer.close();


    }



}
